package com.itheima.health.dao;

import com.itheima.health.vo.OrderMemberSetmealVO;
import com.itheima.health.pojo.Order;
import com.itheima.health.vo.SetmealReportParam;
import org.apache.ibatis.annotations.Mapper;

import java.time.LocalDate;
import java.util.Date;
import java.util.List;

/**
 * 预约DAO
 */
@Mapper
public interface OrderDao {


    List<SetmealReportParam> getSetmealReport();
    Long selectTodayOrder(LocalDate today, String status);

    Long selectThisOrder(LocalDate today, LocalDate start, String status);

    Long selectOrderNumber();

    OrderMemberSetmealVO select(Integer id);

    /**
     * 查询该会员是否预约过其他项目
     * @param id
     * @param subDate
     * @return
     */
    Order selectOrder(Integer id, Date subDate);

    /**
     * 预约提交后新增信息
     * @param insertOrder
     */
    void insert(Order insertOrder);


}
